app.service('z-rest-s', [
		'$rootScope',
		'$z-http',
		'ZModel',
		function($rootScope, $http, ZModel) {
			var service = {
					getRestBalanceList : function(data,success,fault) {
						$http.post("modify/getRestBalanceList.do",data)
						.success(function(data) {
							success(data.success);
		  				}).error(function(data) {
	  						fault(data);
		  				});
					},
					getModifyLogsList : function(data,success,fault) {
						$http.post("modify/getModifyLogsList.do",
								$.param(data),
								{headers: {'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'}}
								).success(function(data) {
									success(data.success);
				  				}).error(function(data) {
				  					if(fault) {
				  						fault(data);
				  				}
			  				});
					},
					saveModifyLogs : function(data,success,fault) {
						$http.post("modify/saveModifyLogs.do",data)
						.success(function(data) {
							success(data.success);
		  				}).error(function(data) {
	  						fault(data);
		  				});
					},
			};
			return service;
		} ]);